// run: $exec < input
#include <cstdio>
#include <algorithm>

int n;

int main()
{
	std::scanf("%d", &n);
	int prev = -1, now, ans = 1, count = 0;
	for (int i = 0; i < n; i++) {
		std::scanf("%d", &now);
		if (now >= prev) count++;
		else {
			ans = std::max(ans, count);
			count = 1;
		}
		prev = now;
	}
	std::printf("%d\n", std::max(count, ans));
}
